#ifndef __NEW_PROJECT_DLG_H__
#define __NEW_PROJECT_DLG_H__

#include "ttcodeNewProjectDlg.h"
#include <string>

class NewProjectDlg : public NewProjectDialog
{
public:
	NewProjectDlg( wxWindow* parent );
	~NewProjectDlg(){}
	void genProject(std::string &doc_name,std::string &doc_home);
protected:
	virtual void m_treeCtrlProjectTypeOnTreeSelChanged( wxTreeEvent& event );
	virtual void m_listCtrlPanelOnListItemSelected( wxListEvent& event );
	virtual void m_textCtrlNameOnText( wxCommandEvent& event );
private:
	void loadTree( void );
	void loadPanel( void );
	void loadText( void );
	void loadLocation( void );
	void loadOk( void );

private:
	std::string m_CurTemp;
	std::string m_CurTreeItem;
	long m_Index;
	unsigned int m_LocationPos;

	wxTreeItemId m_root;
	wxTreeItemId m_general;
	wxTreeItemId m_cxx;
	wxTreeItemId m_ruby;
	wxTreeItemId m_lua;
};

#endif // __NEW_PROJECT_DLG_H__